home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
STANDALO
/
BOUNCE_C
/
BOUNCE.H
< prev
next >
Wrap
Text File
|
1990-08-24
|
1KB
|
53 lines
/*
* bounce.h -- description of Bounce class.
*/
#include <cdev.h>
#include "LineBox.h"
/* default number of lines to bounce */
#define NUM_LINES 20
struct Bounce : cdev {
Handle cursor; /* cursor to display in in my pane */
LineBox *lines; /* bouncing line object */
/* Methods to override */
long Message(int msg, int item); /* general message dispatch */
void Init(void); /* "initDev" */
void Close(void); /* "closeDev" */
void Update(void); /* "updateDev" */
void ItemHit(int); /* "hitDev" */
void Idle(void); /* "nulDev" */
/* My methods */
void Cursor(void); /* "cursorDev" */
void About(void); /* put up an about box */
Handle ReadRsrc(OSType, int); /* read a resouce & trap errors */
};
enum MyItems {
AboutItem = 1,
TitleItem,
BounceItem
};
enum AboutItems {
OKItem = 1,
NameItem,
DescripItem,
AboutBounceItem
};
#ifndef NIL
#define NIL ((void *)0L)
#endif
#define cursorDev 14 /* from TN #215 */
#define CURSID (-4064)
#define AboutID (-4063)
void BounceAbout(DialogPtr, int, Rect *);